<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <title></title>
    <link rel="stylesheet" href="__PUBLIC__/Admin/css/pintuer.css">
    <link rel="stylesheet" href="__PUBLIC__/Admin/css/admin.css">
    <script src="__PUBLIC__/Admin/js/jquery.js"></script>
    <script src="__PUBLIC__/Admin/js/pintuer.js"></script>
</head>
<body>
<div>
    <a class="button button-little bg-green" href="{:U('Admin/conclusion/conclusionuseradd',['id'=>0])}" target="right">
        <span></span><i class="fas fa-plus"></i> 添加</a>
</div>
<div class="panel admin-panel">
    <div class="panel-head"><strong class="icon-reorder"> 成员列表</strong></div>
    <table class="table table-hover text-center">
        <tr>
            <th width="8%">序号</th>
            <th width="8%">姓名</th>
            <th width="12%">手机号</th>
            <th width="12%">操作</th>
        </tr>
        <foreach name="conclusions" item="a">
            <tr>
                <td>{$a['conuserid']}</td>
                <td>{$a['name']}</td>
                <td>{$a['mobile']}</td>
                <td><div class="button-group">
                    <a class="button border-main" href="{:U('Admin/conclusion/conclusionuseradd',array('id'=>$a['conuserid']))}"><span class="icon-edit"></span> 修改</a>
                    <a class="button border-green" href="{:U('Admin/conclusion/conclusionedit',array('id'=>$a['conuserid']))}"><span class="icon-edit"></span> 编辑年度总结</a>
                    <a class="button border-red" href="javascript:void(0)" onclick="return del({$a['conuserid']})"><span class="icon-trash-o"></span> 删除</a>
                </div></td>
            </tr>

        </foreach>
        <tr>
            <td colspan="8"><div class="pagelist">{$page}</div></td>
        </tr>
    </table>
</div>

</body></html>
<script>
    function del(id) {
        if (confirm("您确定要删除吗?")) {
            window.location.href="/Admin/conclusion/del/id/"+id;
        }
    }
    //视频排序
    $(".user_sort").keyup(function(event){
        var sort = $(this).val();
        var id = $(this).attr('id');
        console.log(sort)

        if (event.keyCode == "13") {
            $.ajax({
                url: '{:U('User/sort')}',
                data: {'uid':id, 'sort':sort},
            type:'POST',
                success: function(res){
                if(res.code == 1){
                    alert(res.message);
                }else{
                    alert(res.message);
                }
            }
        });
        }
    })
</script>